package com.roncoo.pay.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * 权限管理-角色权限关联表..
 *
 */
@TableName(value="PMS_MENU_ROLE")
public class PmsMenuRole extends Model<PmsMenuRole> {

	private static final long serialVersionUID = -9012707031072904356L;
	
	@TableId
	private Long id;// 主键ID.
	private Integer version = 0;// 版本号默认为0
	private String status = "";// 状态 PublicStatusEnum
	private String creater;// 创建人.
	@TableField(value="create_time")
	private Date createTime = new Date();// 创建时间.
	private String editor;// 修改人.
	@TableField(value="edit_time")
	private Date editTime;// 修改时间.
	private String remark;// 描述

	/** 角色ID **/
	@TableField(value="role_id")
	private Long roleId;

	/** 菜单ID **/
	@TableField(value="menu_id")
	private Long menuId;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getEditor() {
		return editor;
	}

	public void setEditor(String editor) {
		this.editor = editor;
	}

	public Date getEditTime() {
		return editTime;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getMenuId() {
		return menuId;
	}

	public void setMenuId(Long menuId) {
		this.menuId = menuId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}
